package top.eggcode.component.query.model;

public class ExpressionImpl<T> implements Expression<T> {

    private final Class<T> javaType;

    private Object value;

    public ExpressionImpl(Object value, Class<T> javaType) {
        this.javaType = javaType;
        this.value = value;
    }

    public ExpressionImpl(Class<T> javaType) {
        this.javaType = javaType;
    }

    public Class<T> getJavaType() {
        return javaType;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }
}
